<?php


class Test_AjaxController extends WSB_Controller_Action
{

	public function init()
	{
		parent::init(); // immer zuerst!
	    $this->_models = array('Cms_Model_DbTable_Placeholder');
	}

	/**
	 * Die Default LIST Action
	 *
	 */
    public function listAction()
	{
		$this->view->titleType = 'h1';
        $table = new Cms_Model_DbTable_Placeholder();
        $this->view->modelIndex = 0;
        $this->view->prototype = $table;
		$this->view->filter = array();
		$this->view->order = 'name';
		$this->view->count = 0;
		$this->view->offset = 0;
		$this->view->total = 100;
    	$this->view->models = $table->fetchAll();
    	$this->view->controller = $this;
		echo $this->view->render($this->_listView);
        exit;
    }

}
